package org.zk.dao;

import org.springframework.stereotype.Repository;
import org.zk.entity.Topic;

import java.util.List;
import java.util.Map;

/**
 * 说明:资讯业务相关的dao层
 *
 * @姚文斌
 * @create 2019-11-18 下午 4:54
 */
@Repository
public interface TopicDao {
    //1.查询所有的资讯
    List<Topic> allTopic(Topic topic);
    //2.删除某个资讯
    int del(Topic topic);


    //====================================================== 直接异步的方式 ======
    List getLikeTopics(Map<String, Object> map);

    int getLikeTopicsCount(Map<String, Object> map);
}
